class MasterWorker {
  late String name;

  late int sex;

  late int count;

  late String mobile;

  MasterWorker(this.name, this.sex, this.count, this.mobile);

  MasterWorker.fromJson(Map<String, dynamic> json) {
    name = json['name'];
    sex = json['sex'];
    count = json['count'];
    mobile = json['mobile'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['name'] = name;
    data['sex'] = sex;
    data['count'] = count;
    data['mobile'] = mobile;
    return data;
  }
}
